app-chooser-widget: plug a memory leak
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 7 Dec 2010 09:08:47 +0000 (10:08 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 7 Dec 2010 09:08:47 +0000 (10:08 +0100)
gtk/gtkappchooserwidget.c

index 95510e9a35fa7e5fa43bbb3160ff7f7a8552d716..5de7c3e7e00cb7d7a7cd9a33ea7653ce8079b228 100644 (file)
@@ -402,13 +402,13 @@ gtk_app_chooser_sort_func (GtkTreeModel *model,
   /* they're both recommended/falback or not, so if one is a heading, wins */
   if (a_heading)
     {
-      return -1;
+      retval = -1;
       goto out;
     }
 
   if (b_heading)
     {
-      return 1;
+      retval = 1;
       goto out;
     }